package com.anti.modular.bus.billwater.result;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * 账单流水
 *
 * @author anti
 * @date 2021-04-24 13:44:46
 */
@Data
public class BillWaterExcelResult {

    /**
     * 主键id
     */
    private Long id;

    /**
     * 訂單單號
     */
    private String no;

    /**
     * 房间名
     */
    @Excel(name = "房間",needMerge = true, width = 30)
    private String roomName;

    /**
     * 姓名
     */
    @Excel(name = "姓名",needMerge = true, width = 30)
    private String name;

    /**
     * 来源 （字典 bill_water_source）
     */
    @Excel(name = "來源",needMerge = true, width = 30)
    private String sourceName;

    /**
     * 金额
     */
    @Excel(name = "金額",needMerge = true, width = 30)
    private BigDecimal amount;

    @ExcelCollection(name = "费用项")
    private List<BillWaterDetailExcel> detailList=new ArrayList<>();
    /**
     * 應收日期
     */
    @Excel(name = "應收日期",databaseFormat = "yyyy-MM-dd",needMerge = true, width = 30)
    private Date shouldReceiveDate;

    /**
     * 实收日期
     */
    @Excel(name = "實收日期",databaseFormat = "yyyy-MM-dd",needMerge = true, width = 30)
    private Date receiveDate;


    /**
     * 交易方式编码
     */
    @Excel(name = "交易方式",needMerge = true, width = 30)
    private String transactionNam;

    /**
     * 经办人
     */
    @Excel(name = "經辦人",needMerge = true, width = 30)
    private String manager;

    /**
     * 经办时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @Excel(name = "經辦時間",needMerge = true, width = 30,databaseFormat = "yyyy-MM-dd")
    private Date managertTime;

    /**
     * 审核标志
     */
    @Excel(name = "審核標誌",needMerge = true, width = 30,replace = {"未審核_0","已審核_1"})
    private String auditFlag;


    /**
     * 审核人
     */
    @Excel(name = "審核人",needMerge = true, width = 30)
    private String auditName;

    /**
     * 审核时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    @Excel(name = "審核時間",needMerge = true, width = 30,databaseFormat = "yyyy-MM-dd")
    private Date auditTime;

    /**
     * 流入流出類型
     */
    @Excel(name = "流入流出類型",needMerge = true, width = 30,replace = {"流入_1","流出_2"})
    private String billInOutType;



}
